home *** CD-ROM | disk | FTP | other *** search
- ** END HEADER -- do not remove this line
- //
- // Generated on 09/22/97
- //
- parameter formObj
- new FleetMENU(formObj, "root")
-
- class FleetMENU(formObj, name) of MENUBAR(formObj, name)
- with (this)
- onInitMenu = class::Root_onInitMenu
- endwith
-
-
- this.MENUFILE = new MENU(this)
- with (this.MENUFILE)
- text = "&File"
- endwith
-
-
- this.MENUFILE.MENUOPEN = new MENU(this.MENUFILE)
- with (this.MENUFILE.MENUOPEN)
- text = "&Open"
- endwith
-
-
- this.MENUFILE.MENUOPEN.MENUAIRCRAFT = new MENU(this.MENUFILE.MENUOPEN)
- with (this.MENUFILE.MENUOPEN.MENUAIRCRAFT)
- onClick = class::MENUAIRCRAFT_ONCLICK
- text = "&Aircraft"
- endwith
-
-
- this.MENUFILE.MENUOPEN.MENUTREE = new MENU(this.MENUFILE.MENUOPEN)
- with (this.MENUFILE.MENUOPEN.MENUTREE)
- onClick = class::MENUTREE_ONCLICK
- text = "Fleet &Tree"
- endwith
-
-
- this.MENUFILE.MENUOPEN.MENUSCHEDULE = new MENU(this.MENUFILE.MENUOPEN)
- with (this.MENUFILE.MENUOPEN.MENUSCHEDULE)
- onClick = class::MENUSCHEDULE_ONCLICK
- text = "&Schedule"
- endwith
-
-
- this.MENUFILE.MENUSEP1 = new MENU(this.MENUFILE)
- with (this.MENUFILE.MENUSEP1)
- text = ""
- separator = true
- endwith
-
-
- this.MENUFILE.MENUWIZARD = new MENU(this.MENUFILE)
- with (this.MENUFILE.MENUWIZARD)
- onClick = class::MENUWIZARD_ONCLICK
- text = "&Schedule Generation Wizard..."
- endwith
-
-
- this.MENUFILE.MENUSEP2 = new MENU(this.MENUFILE)
- with (this.MENUFILE.MENUSEP2)
- text = ""
- separator = true
- endwith
-
-
- this.MENUFILE.MENUEXIT = new MENU(this.MENUFILE)
- with (this.MENUFILE.MENUEXIT)
- onClick = class::MENUEXIT_ONCLICK
- text = "E&xit"
- endwith
-
-
- this.MENUREPORTS = new MENU(this)
- with (this.MENUREPORTS)
- text = "&Reports"
- endwith
-
- this.MENUREPORTS.MENUBYFLIGHT = new MENU(this.MENUREPORTS)
- with (this.MENUREPORTS.MENUBYFLIGHT)
- onClick = class::MENUBYFLIGHT_ONCLICK
- text = "Schedule by &Flight"
- endwith
-
- this.MENUREPORTS.MENUBYAIRCRAFT = new MENU(this.MENUREPORTS)
- with (this.MENUREPORTS.MENUBYAIRCRAFT)
- onClick = class::MENUBYAIRCRAFT_ONCLICK
- text = "Schedule by &Aircraft"
- endwith
-
- this.MENUHELP = new MENU(this)
- with (this.MENUHELP)
- text = "&Help"
- endwith
-
-
- this.MENUHELP.MENUABOUT = new MENU(this.MENUHELP)
- with (this.MENUHELP.MENUABOUT)
- onClick = class::MENUABOUT_ONCLICK
- text = "&About Fleet Manager"
- endwith
-
-
- // {Linked Method} form.root.menuhelp.menuabout.onClick
- function MENUABOUT_onClick
- local f
- f = new fAboutForm()
- f.mdi := false
- f.readModal()
- return ( f.release() )
-
- // {Linked Method} form.root.menufile.menuexit.onClick
- function MENUEXIT_onClick
- local app
- app = this.parent.parent.parent.app
- return ( app.close() )
-
- // {Linked Method} form.root.menufile.menuopen.menuaircraft.onClick
- function MENUAIRCRAFT_onClick
- local app
- app = this.parent.parent.parent.parent.app
- return ( app.openAircraftForm() )
-
- // {Linked Method} form.root.menufile.menuopen.menuschedule.onClick
- function MENUSCHEDULE_onClick
- local app
- app = this.parent.parent.parent.parent.app
- return ( app.openScheduleForm() )
-
- // {Linked Method} form.root.menufile.menuopen.menutree.onClick
- function MENUTREE_onClick
- local app
- app = this.parent.parent.parent.parent.app
- return ( app.openFleetTreeForm() )
-
- // {Linked Method} form.root.menufile.menuwizard.onClick
- function MENUWIZARD_onClick
- local app
- app = this.parent.parent.parent.app
- return ( app.readWizard() )
-
- // {Linked Method} form.root.menureports.menubyflight.onClick
- function MENUBYFLIGHT_onClick
- local app
- app = this.parent.parent.parent.app
- return ( app.viewFlightReport() )
-
- // {Linked Method} form.root.menureports.menubyaircraft.onClick
- function MENUBYAIRCRAFT_onClick
- local app
- app = this.parent.parent.parent.app
- return ( app.viewAircraftReport() )
-
- function ROOT_onInitMenu
- local bApp
- bApp = ( TYPE("this.parent.app") == "O" )
- if ( not bApp )
- this.menuFile.menuOpen.enabled := false
- this.menuFile.menuWizard.enabled := false
- this.menuFile.menuExit.onClick := ;
- { ; this.parent.parent.parent.close() }
- this.menuHelp.menuAbout.enabled := false
- endif
- return (bApp)
- endclass
-